import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';

export const columns: BasicColumn[] = [
  {
    title: '标题',
    dataIndex: 'title',
    width: 120,
    ellipsis: true,
    resizable: true,
    slots: { customRender: 'title' },
  },
  {
    title: '收件人',
    dataIndex: 'receiversjsRealName',
    width: 100,
    ellipsis: true,
    resizable: true,
    slots: { customRender: 'receiversjsRealName' },
  },
  {
    title: '发送状态',
    dataIndex: 'isSent',
    width: 50,
    ellipsis: true,
    resizable: true,
  },
  {
    title: '发送时间',
    dataIndex: 'sendTime',
    width: 150,
    ellipsis: true,
    resizable: true,
  },
  // {
  //   title: '日期',
  //   dataIndex: 'rq',
  //   width: 150,
  //   ellipsis: true,
  //   resizable: true,
  // },
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'kind',
    label: '',
    component: 'Input',
    colProps: { span: 8 },
    slot: 'kind',
  },
];

export const formSchema: FormSchema[] = [];
export const byOptions = [
  {
    label: '标题',
    value: 'title',
  },
  {
    label: '内容',
    value: 'content',
  },
  {
    label: '发件人',
    value: 'sender',
  },
  {
    label: '未读消息',
    value: 'notreaded',
  },
];
